package com.jeff.tianti.org.entity;

import com.jeff.tianti.common.entity.BaseEntity;
import com.jeff.tianti.common.entity.MysqlSequenceIdEntity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Set;

/**
 * 角色管理
 *
 * @author Jianfang Xu
 */
@Entity
@Table(name = "org_dictionary")
public class Dictionary extends MysqlSequenceIdEntity implements Serializable {
    //用于PC渠道
    public static final Integer CHANNEL_PC = 0;


    //用于H5渠道
    public static final Integer CHANNEL_H5 = 1;

    //顶级
    public static final Integer LEVEL_ROOT = 0;

    //叶子级
    public static final Integer LEVEL_LEAF = 1;

    //逻辑删除标识位—已删除状态
    public static final String DELETE_FLAG_DELETED = "1";

    //逻辑删除标识位—未删除状态
    public static final String DELETE_FLAG_NORMAL = "0";

    private String code;
    private String name;
    private String pid;
    protected String deleteFlag;
    protected String channel;
    protected String level;

    @Column(name = "channel")
    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    @Column(name = "level")
    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    @Column(name = "code")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "pid")
    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    @Column(name = "delete_flag")
    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
}
